/*
* @Author: suddev
* @Date:   2017-08-02 13:58:30
* @Last Modified by:   suddev
* @Last Modified time: 2017-08-02 14:36:53
*/

'use strict';

var indexx = {
    init      : function () {
    	// this.loadInfo();
        this.bindEvent();
    },
    // loadInfo : function () {
    // 	_user.getUserInfo(function(res){
    // 		$('#username').html(res.realname);
    // 	},function(errorMsg){
    // 		_tools.errorTips();
    // 	});
    // },
    bindEvent : function(){
        //退出登录
        $('.logout').click(function(){
            _user.logout(function(res){
                window.location.href = './login.html';
            },function(errorMsg){
                alert(errorMsg);
            });
        });
    }
};

$(function () {
   indexx.init();
});
